<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/style.css">
<script rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
	<div class="navbar-header">
		<img class="logo" src="<?php echo base_url();?>public/img/logo.jpg">
	</div>
	<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		<ul class="nav navbar-nav">
			<li ><a href="<?php echo site_url().'/Blog/Article'; ?>">孙涛的Blog</a></li> 
		</ul>
		<ul class="nav navbar-nav navbar-right">
			<li <?php if($catalog_id==0){ ?> class="active" <?php } ?> ><a href="<?php echo site_url().'/Blog/Article'; ?>">首页</a></li>
		<?php foreach($catalogs as $catalog){?>
			<li <?php if($catalog_id==$catalog->id){ ?> class="active" <?php } ?> >
				<a href="<?php echo site_url().'/Blog/lists/'.$catalog->id; ?>" ><?php echo $catalog->name;?></a>
			</li>
		<?php } ?>
		</ul>
    </div>
</div>
</nav>
<br>
<div class="container">
		<p> <?php echo $articles->content;?></p>
</div>
</body>
</html>